/*
 * Copyright (c) 1996 Advanced Risc Machines Limited
 * All rights reserved
 *
 */


/******************************************************************************
**   
**             
******************************************************************************/

#ifndef mem_h
#define mem_h

#define EPROM_BASE              0x04000000

#define MAX_SECTOR_SIZE         256

#define MAN_ATMEL               0x1F
#define MAN_SST                 0xbF
#define SST_SST29EE020_ID       0x10
#define SST_SECTOR_SIZE         128
#define ATMEL_AT29C020_ID       0XDA
#define ATMEL_AT29C040_ID       0X5B
#define ATMEL_AT29C040A_ID      0XA4
#define ATMEL_AT29C1024_ID      0X25
#define ATMEL_SECTOR_SIZE       256



extern int write_sector (unsigned long base, unsigned long start_address, int sector_size, 
                         unsigned int sector_data[MAX_SECTOR_SIZE]);

#endif

